@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&display=swap');

body {
    background-color: #FFEDED;
    color: #333;
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center; /* Center aligns text elements */
}

*, *:before, *:after {
    box-sizing: border-box;
}

header, nav, section, article, figure, figcaption, footer {
    margin: 0 auto;
}

nav {
    background-color: #ffd86b;
    overflow: hidden;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    padding: 10px;
}

nav a {
    text-decoration: none;
    color: #000;
    padding: 15px 20px;
    display: block;
}

nav a:hover {
    background-color: #f3c1a6;
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
    -webkit-background-clip: text;
    color: transparent;
    padding: 10px 0;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure {
    margin: 20px;
    /* Subtle shadow for images */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Style names as buttons with gradient background */
figcaption {
    display: inline-block; /* Allows us to set padding and margins */
    margin: 10px 0; /* Spacing above and below the name */
    padding: 10px 20px; /* Padding inside the button */
    border-radius: 25px; /* Rounded edges */
    background-image: linear-gradient(45deg, #a6c0fe, #f68084); /* Gradient background */
    color: white; /* Text color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for the button */
    cursor: pointer; /* Changes the cursor to indicate it's clickable */
    transition: transform 0.2s ease; /* Smooth transition for hover effect */
}

figcaption:hover {
    transform: translateY(-3px); /* Slight lift effect on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

h2, h3 {
    background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);
    -webkit-background-clip: text;
    color: transparent;
}

footer {
    background-color: #b27883;
    color: #fff;
    text-align: center;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 15px; /* Rounded edges */
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
}


